package com.coincalf.feign;

import com.coincalf.dto.EntrustOrderMatchDTO;
import com.coincalf.feign.hystrix.OrderInServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author qiang
 */
@FeignClient(value = "exchange-match-service", fallback = OrderInServiceClientFallback.class)
public interface OrderInServiceClient {

    @RequestMapping(value = "/orders", method = RequestMethod.POST)
    Object trust(@RequestBody EntrustOrderMatchDTO orderDTO);
}